package 补充.集合框架;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

public class TestLinKedHashMap {
    public static void main(String[] args) {
        Map map = new LinkedHashMap();
        map.put("A", "B");
        map.put("B", "C");
        map.put("C", "D");
        Iterator iterator = map.entrySet().iterator();
        while (iterator.hasNext()) {
            Map.Entry entry = (Map.Entry) iterator.next();
            Object key = entry.getKey();
            Object value = entry.getValue();
            System.out.println(key + "=" + value);
        }
    }
}
